#include<cstdio>
#include<cstring>
int main(){
	char a[200];
	char b[200];
	gets(a);
	gets(b);
	printf("%d",strcmp(a,b)); 
}
